<?php

use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        
        $data=[];
        for($i=0; $i<200; $i++){
        	$arr['username']='admin'.str_random(4);
        	$arr['password']=Crypt::encrypt('1234');
        	$arr['email']=$arr['username'].'@qq.com';
        	$arr['status']=0;
        	$arr['token']='admin';
        	$data[]=$arr;
        }

        DB::table('users') -> insert($data);
    }
}
